#ifndef TURINGMACHINE_H_INCLUDED
#define TURINGMACHINE_H_INCLUDED

/*
Copyright (C) <2011>  <ivan vaccari>

    <ivan.vaccari@studenti.unipr.it>


This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.


*/
#include <list>
#include <string>
#include "turingConfiguration.h"
class turingMachine{
    private:
        std::list<std::string> tapeLeft;
        std::string currentSymbol;
        std::list<std::string> tapeRight;
        turingConfiguration  cfg;
        bool verbose;
        bool printseparator;
        bool configSetted;
    public:
        turingMachine(turingConfiguration _cfg);
        turingMachine();
        void setConfiguration(turingConfiguration _cfg);
        void explodeOnTape(const std::string & _tape,std::list<std::string> & _t);
        void setTapeRight(const std::string & _tape);
        std::list<std::string> getTapeLeft() const;
        std::list<std::string> getTapeRight() const;
        std::string getFirstSymbol() const;
        void setTapeLeft(const std::string & _tape);
        void setVerbose(bool);
        void setPrintSeparator(bool);
        void setFirstSymbol(const std::string & symb);
        void printTape();
        void compute();


};

#endif // TURINGMACHINE_H_INCLUDED
